//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.hustcad.plm.rpm.model.dto.active;

import com.hustcad.plm.rpm.model.entity.plan.TyppmPlanActive;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.context.annotation.Primary;

import java.time.LocalDateTime;
import java.util.List;

@ApiModel(
    value = "导入任务DTO",
    description = ""
)
@Primary
@Data
public class ImportActiveDTO {
    private List<TyppmPlanActive> dtoList;
    private String planTemplateName;
    private String planTemplateOID;
    private String planTemplateOTYPE;
    private LocalDateTime startDate;
    private LocalDateTime finishDate;
    private LocalDateTime templateStartDate;
    private LocalDateTime templateFinishDate;
    private Integer curPeriod;
    private Integer templatePeriod;
    private String curPlanOID;
    private String curPlanOTYPE;
    private Boolean resousceFalg = false;
    private Boolean appendFlag = false;
    private Boolean templateSource = false;

    private String planActiveOID;


    private List<String> planTemplateOIDs;

    public ImportActiveDTO() {
    }

    public List<String> getPlanTemplateOIDs() {
        return planTemplateOIDs;
    }

    public void setPlanTemplateOIDs(List<String> planTemplateOIDs) {
        this.planTemplateOIDs = planTemplateOIDs;
    }

    public List<TyppmPlanActive> getDtoList() {
        return this.dtoList;
    }

    public String getPlanTemplateName() {
        return this.planTemplateName;
    }

    public String getPlanTemplateOID() {
        return this.planTemplateOID;
    }

    public String getPlanTemplateOTYPE() {
        return this.planTemplateOTYPE;
    }

    public LocalDateTime getStartDate() {
        return this.startDate;
    }

    public LocalDateTime getFinishDate() {
        return this.finishDate;
    }

    public LocalDateTime getTemplateStartDate() {
        return this.templateStartDate;
    }

    public LocalDateTime getTemplateFinishDate() {
        return this.templateFinishDate;
    }

    public Integer getCurPeriod() {
        return this.curPeriod;
    }

    public Integer getTemplatePeriod() {
        return this.templatePeriod;
    }

    public String getCurPlanOID() {
        return this.curPlanOID;
    }

    public String getCurPlanOTYPE() {
        return this.curPlanOTYPE;
    }

    public Boolean getResousceFalg() {
        return this.resousceFalg;
    }

    public Boolean getAppendFlag() {
        return this.appendFlag;
    }

    public Boolean getTemplateSource() {
        return this.templateSource;
    }

    public void setDtoList(final List<TyppmPlanActive> dtoList) {
        this.dtoList = dtoList;
    }

    public void setPlanTemplateName(final String planTemplateName) {
        this.planTemplateName = planTemplateName;
    }

    public void setPlanTemplateOID(final String planTemplateOID) {
        this.planTemplateOID = planTemplateOID;
    }

    public void setPlanTemplateOTYPE(final String planTemplateOTYPE) {
        this.planTemplateOTYPE = planTemplateOTYPE;
    }

    public void setStartDate(final LocalDateTime startDate) {
        this.startDate = startDate;
    }

    public void setFinishDate(final LocalDateTime finishDate) {
        this.finishDate = finishDate;
    }

    public void setTemplateStartDate(final LocalDateTime templateStartDate) {
        this.templateStartDate = templateStartDate;
    }

    public void setTemplateFinishDate(final LocalDateTime templateFinishDate) {
        this.templateFinishDate = templateFinishDate;
    }

    public void setCurPeriod(final Integer curPeriod) {
        this.curPeriod = curPeriod;
    }

    public void setTemplatePeriod(final Integer templatePeriod) {
        this.templatePeriod = templatePeriod;
    }

    public void setCurPlanOID(final String curPlanOID) {
        this.curPlanOID = curPlanOID;
    }

    public void setCurPlanOTYPE(final String curPlanOTYPE) {
        this.curPlanOTYPE = curPlanOTYPE;
    }

    public void setResousceFalg(final Boolean resousceFalg) {
        this.resousceFalg = resousceFalg;
    }

    public void setAppendFlag(final Boolean appendFlag) {
        this.appendFlag = appendFlag;
    }

    public void setTemplateSource(final Boolean templateSource) {
        this.templateSource = templateSource;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ImportActiveDTO)) {
            return false;
        } else {
            ImportActiveDTO other = (ImportActiveDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label191: {
                    Object this$curPeriod = this.getCurPeriod();
                    Object other$curPeriod = other.getCurPeriod();
                    if (this$curPeriod == null) {
                        if (other$curPeriod == null) {
                            break label191;
                        }
                    } else if (this$curPeriod.equals(other$curPeriod)) {
                        break label191;
                    }

                    return false;
                }

                Object this$templatePeriod = this.getTemplatePeriod();
                Object other$templatePeriod = other.getTemplatePeriod();
                if (this$templatePeriod == null) {
                    if (other$templatePeriod != null) {
                        return false;
                    }
                } else if (!this$templatePeriod.equals(other$templatePeriod)) {
                    return false;
                }

                Object this$resousceFalg = this.getResousceFalg();
                Object other$resousceFalg = other.getResousceFalg();
                if (this$resousceFalg == null) {
                    if (other$resousceFalg != null) {
                        return false;
                    }
                } else if (!this$resousceFalg.equals(other$resousceFalg)) {
                    return false;
                }

                label170: {
                    Object this$appendFlag = this.getAppendFlag();
                    Object other$appendFlag = other.getAppendFlag();
                    if (this$appendFlag == null) {
                        if (other$appendFlag == null) {
                            break label170;
                        }
                    } else if (this$appendFlag.equals(other$appendFlag)) {
                        break label170;
                    }

                    return false;
                }

                label163: {
                    Object this$templateSource = this.getTemplateSource();
                    Object other$templateSource = other.getTemplateSource();
                    if (this$templateSource == null) {
                        if (other$templateSource == null) {
                            break label163;
                        }
                    } else if (this$templateSource.equals(other$templateSource)) {
                        break label163;
                    }

                    return false;
                }

                Object this$dtoList = this.getDtoList();
                Object other$dtoList = other.getDtoList();
                if (this$dtoList == null) {
                    if (other$dtoList != null) {
                        return false;
                    }
                } else if (!this$dtoList.equals(other$dtoList)) {
                    return false;
                }

                Object this$planTemplateName = this.getPlanTemplateName();
                Object other$planTemplateName = other.getPlanTemplateName();
                if (this$planTemplateName == null) {
                    if (other$planTemplateName != null) {
                        return false;
                    }
                } else if (!this$planTemplateName.equals(other$planTemplateName)) {
                    return false;
                }

                label142: {
                    Object this$planTemplateOID = this.getPlanTemplateOID();
                    Object other$planTemplateOID = other.getPlanTemplateOID();
                    if (this$planTemplateOID == null) {
                        if (other$planTemplateOID == null) {
                            break label142;
                        }
                    } else if (this$planTemplateOID.equals(other$planTemplateOID)) {
                        break label142;
                    }

                    return false;
                }

                label135: {
                    Object this$planTemplateOTYPE = this.getPlanTemplateOTYPE();
                    Object other$planTemplateOTYPE = other.getPlanTemplateOTYPE();
                    if (this$planTemplateOTYPE == null) {
                        if (other$planTemplateOTYPE == null) {
                            break label135;
                        }
                    } else if (this$planTemplateOTYPE.equals(other$planTemplateOTYPE)) {
                        break label135;
                    }

                    return false;
                }

                Object this$startDate = this.getStartDate();
                Object other$startDate = other.getStartDate();
                if (this$startDate == null) {
                    if (other$startDate != null) {
                        return false;
                    }
                } else if (!this$startDate.equals(other$startDate)) {
                    return false;
                }

                label121: {
                    Object this$finishDate = this.getFinishDate();
                    Object other$finishDate = other.getFinishDate();
                    if (this$finishDate == null) {
                        if (other$finishDate == null) {
                            break label121;
                        }
                    } else if (this$finishDate.equals(other$finishDate)) {
                        break label121;
                    }

                    return false;
                }

                Object this$templateStartDate = this.getTemplateStartDate();
                Object other$templateStartDate = other.getTemplateStartDate();
                if (this$templateStartDate == null) {
                    if (other$templateStartDate != null) {
                        return false;
                    }
                } else if (!this$templateStartDate.equals(other$templateStartDate)) {
                    return false;
                }

                label107: {
                    Object this$templateFinishDate = this.getTemplateFinishDate();
                    Object other$templateFinishDate = other.getTemplateFinishDate();
                    if (this$templateFinishDate == null) {
                        if (other$templateFinishDate == null) {
                            break label107;
                        }
                    } else if (this$templateFinishDate.equals(other$templateFinishDate)) {
                        break label107;
                    }

                    return false;
                }

                Object this$curPlanOID = this.getCurPlanOID();
                Object other$curPlanOID = other.getCurPlanOID();
                if (this$curPlanOID == null) {
                    if (other$curPlanOID != null) {
                        return false;
                    }
                } else if (!this$curPlanOID.equals(other$curPlanOID)) {
                    return false;
                }

                Object this$curPlanOTYPE = this.getCurPlanOTYPE();
                Object other$curPlanOTYPE = other.getCurPlanOTYPE();
                if (this$curPlanOTYPE == null) {
                    if (other$curPlanOTYPE != null) {
                        return false;
                    }
                } else if (!this$curPlanOTYPE.equals(other$curPlanOTYPE)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ImportActiveDTO;
    }

    public int hashCode() {
        int result = 1;
        Object $curPeriod = this.getCurPeriod();
        result = result * 59 + ($curPeriod == null ? 43 : $curPeriod.hashCode());
        Object $templatePeriod = this.getTemplatePeriod();
        result = result * 59 + ($templatePeriod == null ? 43 : $templatePeriod.hashCode());
        Object $resousceFalg = this.getResousceFalg();
        result = result * 59 + ($resousceFalg == null ? 43 : $resousceFalg.hashCode());
        Object $appendFlag = this.getAppendFlag();
        result = result * 59 + ($appendFlag == null ? 43 : $appendFlag.hashCode());
        Object $templateSource = this.getTemplateSource();
        result = result * 59 + ($templateSource == null ? 43 : $templateSource.hashCode());
        Object $dtoList = this.getDtoList();
        result = result * 59 + ($dtoList == null ? 43 : $dtoList.hashCode());
        Object $planTemplateName = this.getPlanTemplateName();
        result = result * 59 + ($planTemplateName == null ? 43 : $planTemplateName.hashCode());
        Object $planTemplateOID = this.getPlanTemplateOID();
        result = result * 59 + ($planTemplateOID == null ? 43 : $planTemplateOID.hashCode());
        Object $planTemplateOTYPE = this.getPlanTemplateOTYPE();
        result = result * 59 + ($planTemplateOTYPE == null ? 43 : $planTemplateOTYPE.hashCode());
        Object $startDate = this.getStartDate();
        result = result * 59 + ($startDate == null ? 43 : $startDate.hashCode());
        Object $finishDate = this.getFinishDate();
        result = result * 59 + ($finishDate == null ? 43 : $finishDate.hashCode());
        Object $templateStartDate = this.getTemplateStartDate();
        result = result * 59 + ($templateStartDate == null ? 43 : $templateStartDate.hashCode());
        Object $templateFinishDate = this.getTemplateFinishDate();
        result = result * 59 + ($templateFinishDate == null ? 43 : $templateFinishDate.hashCode());
        Object $curPlanOID = this.getCurPlanOID();
        result = result * 59 + ($curPlanOID == null ? 43 : $curPlanOID.hashCode());
        Object $curPlanOTYPE = this.getCurPlanOTYPE();
        result = result * 59 + ($curPlanOTYPE == null ? 43 : $curPlanOTYPE.hashCode());
        return result;
    }

    public String toString() {
        return "ImportActiveDTO(dtoList=" + this.getDtoList() + ", planTemplateName=" + this.getPlanTemplateName() + ", planTemplateOID=" + this.getPlanTemplateOID() + ", planTemplateOTYPE=" + this.getPlanTemplateOTYPE() + ", startDate=" + this.getStartDate() + ", finishDate=" + this.getFinishDate() + ", templateStartDate=" + this.getTemplateStartDate() + ", templateFinishDate=" + this.getTemplateFinishDate() + ", curPeriod=" + this.getCurPeriod() + ", templatePeriod=" + this.getTemplatePeriod() + ", curPlanOID=" + this.getCurPlanOID() + ", curPlanOTYPE=" + this.getCurPlanOTYPE() + ", resousceFalg=" + this.getResousceFalg() + ", appendFlag=" + this.getAppendFlag() + ", templateSource=" + this.getTemplateSource() + ")";
    }
}
